package com.x.crm.model;

import com.x.crm.DocDesc;
import com.x.framework.annotation.MappingColumn;
import com.x.framework.annotation.MappingTable;
import com.x.framework.model.BaseObject;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;


@MappingTable(tableName = "CRM_WARRANTY")
public class Warranty extends BaseObject {
	@DocDesc("质保等级ID")
	@MappingColumn(columnName = "WARRANTY_ID", columnPk = true, columnLength = 32)
	private String warrantyId;
	@DocDesc("质保等级名称")
	@MappingColumn(columnName = "WARRANTY_NAME")
	private String warrantyName;
	@DocDesc("质保费用")
	@MappingColumn(columnName = "WARRANTY_FEE_CENT")
	private BigDecimal warrantyFeeCent;
	@DocDesc("市场ID")
	@MappingColumn(columnName = "MARKET_ID")
	private String marketId;
	@DocDesc("车商ID")
	@MappingColumn(columnName = "SHOP_ID")
	private String shopId;
	@DocDesc("质保等级备注")
	@MappingColumn(columnName = "WARRANTY_REMARK")
	private String warrantyRemark;
	@DocDesc("创建时间")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@MappingColumn(columnName = "WARRANTY_CREATE_TIME")
	private Date warrantyCreateTime;
	@DocDesc("状态")
	@MappingColumn(columnName = "WARRANTY_STATE")
	private Integer warrantyState;

	public Warranty() {
	}

	public Warranty(String marketId, Integer state) {
		this.marketId = marketId;
		this.warrantyState = state;
	}

	public String getWarrantyId() {
		return warrantyId;
	}

	public void setWarrantyId(String warrantyId) {
		this.warrantyId = warrantyId;
	}

	public String getWarrantyName() {
		return warrantyName;
	}

	public void setWarrantyName(String warrantyName) {
		this.warrantyName = warrantyName;
	}

	public BigDecimal getWarrantyFeeCent() {
		return warrantyFeeCent;
	}

	public void setWarrantyFeeCent(BigDecimal warrantyFeeCent) {
		this.warrantyFeeCent = warrantyFeeCent;
	}

	public String getMarketId() {
		return marketId;
	}

	public void setMarketId(String marketId) {
		this.marketId = marketId;
	}

	public String getShopId() {
		return shopId;
	}

	public void setShopId(String shopId) {
		this.shopId = shopId;
	}

	public String getWarrantyRemark() {
		return warrantyRemark;
	}

	public void setWarrantyRemark(String warrantyRemark) {
		this.warrantyRemark = warrantyRemark;
	}

	public Date getWarrantyCreateTime() {
		return warrantyCreateTime;
	}

	public void setWarrantyCreateTime(Date warrantyCreateTime) {
		this.warrantyCreateTime = warrantyCreateTime;
	}

	public Integer getWarrantyState() {
		return warrantyState;
	}

	public void setWarrantyState(Integer warrantyState) {
		this.warrantyState = warrantyState;
	}
}

